package com.online_exam.viewmodel.admin.ExamPaper;


import com.online_exam.viewmodel.admin.question.QuestionEditVM;
import lombok.Data;

import javax.validation.Valid;

import javax.validation.constraints.Size;
import java.util.List;

@Data
//大题
public class ExamPaperTitleItemVM {

    //标题
    private String name;

    //小题 - Question
    @Size(min = 1,message = "请添加题目")
    @Valid
    private List<QuestionEditVM> questionItems;
}
